<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<%@ include file="/common/import.jsp" %>
<script>
  var thsTitle = "欢迎页面";
</script>
</head>
<body class="home-template"  style="background:url('') no-repeat center top">
<!-- 正文开始 -->
	<div class="searchForm"><form id="contentForm">
		<input type="hidden" name="infoId" value="">
		<input type="hidden" name="objId" value="0">
		<input type="hidden" name="objType" value="rule">
		<center>
		<textArea id="noticeContent" name="infoContent" style="width:90%;height:400px;"></textArea> <br/>
		<a class="easyui-linkbutton"  iconCls="icon-reload" onclick="saveContent();">保存交易须知</a>
		</center>
	</form></div>
<!-- 正文结束 -->
<%@ include file="/common/top.jsp" %>
</body>
</html>
<script>
function saveContent(){
	var infoId = $("#contentForm").find("input[name='infoId']").val();
	if(infoId==""){
		addSubmit('infoContent','contentForm');
	}else{
		editSubmit('infoContent',infoId,'contentForm');
	}
}

//得到一个content对象
function getContentBack(obj,keyType){
	if(obj==undefined){
		alert("请录入竞价大厅的交易规则");
	}else{
		loadData(obj,"contentForm");
	}
}

$(function(){
	//加载分页列表
	getContent("0","rule");
});
</script>